package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2025-03-04
 * Time: 13:35
 */
// 文件删除
public class Demo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("./src/test.txt");
        file.delete();

        // 是等到程序退出了再删除, 不是立即删除
        // file.deleteOnExit();

        // Thread.sleep(5000);
    }
}
